package configuration.options;

import database.mediator.MediatorInterface;
import distributedRE.model.DistributedREModel;
import distributedRE.model.Session;

public class CompoundOption extends AdjustmentOption {

	private AdjustmentOption a1;
	private AdjustmentOption a2;

	public CompoundOption(AdjustmentOption a1, AdjustmentOption a2, int K) {
		super(1,K);
		this.a1 = a1;
		this.a2 = a2;
	}

	@Override
	protected void adapt(DistributedREModel dREModel, Session s, MediatorInterface mI) {
		
		a1.adaptReporter(dREModel, s, mI);
		a2.adaptReporter(dREModel, s, mI);
		
	}

	public String toString(){
		
		return "Conjunctive Compound Option";
		
	}
	
}
